-- GENERATED SPELL FOR [Hive'Zora Reaver] --


function spell0_11728(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11728', 649, 1)
end

function spell1_11728(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(16790,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11728', 2000, 1)
end

function Sorts_11728(pUnit, Event)
local choix_sorts_11728 = math.random(0, 1)
if choix_sorts_11728 == 0 then
pUnit:RegisterEvent('spell0_11728', 1, 1)
end
if choix_sorts_11728 == 1 then
pUnit:RegisterEvent('spell1_11728', 1, 1)
end
end

function mob11728_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11728', math.random(1500, 3000), 1)
end

function mob11728_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11728_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11728_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11728, 1, 'mob11728_Action')
RegisterUnitEvent(11728, 2, 'mob11728_Leave')
RegisterUnitEvent(11728, 3, 'mob11728_Kill')
RegisterUnitEvent(11728, 4, 'mob11728_Die')
